﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Themes/Default/Views/Shared/Admin.Master" Inherits="System.Web.Mvc.ViewPage<Fashion.Models.User>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	User Detail
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <div id="box">
    <h3>User Detail</h3>

     <% using (Html.BeginForm()) {%>
        <%: Html.ValidationSummary(true) %>
        
        <fieldset>
            <legend>User Profile</legend>
            
            <div class="editor-field">
                <%: Html.LabelFor(model => model.UserID) %>
                <%: Html.TextBoxFor(model => model.UserID, new { @readonly = "true" })%>
            </div>

            <div class="editor-field">
                <%: Html.LabelFor(model => model.Username) %>
                <%: Html.TextBoxFor(model => model.Username, new { style="width:300px" })%>
                <%: Html.ValidationMessageFor(model => model.Username) %>
            </div>
            
            <div class="editor-field">
                <%: Html.HiddenFor(model => model.Password) %>
            </div>
            
            <div class="editor-field">
                <%: Html.LabelFor(model => model.Avatar) %>
                <%: Html.TextBoxFor(model => model.Avatar, new { style="width:300px" })%>
                <%: Html.ValidationMessageFor(model => model.Avatar) %>
            </div>
            
            <div class="editor-field">
                <%: Html.LabelFor(model => model.FirstName) %>
                <%: Html.TextBoxFor(model => model.FirstName, new { style="width:300px" })%>
                <%: Html.ValidationMessageFor(model => model.FirstName) %>
            </div>
            
            <div class="editor-field">
                <%: Html.LabelFor(model => model.LastName) %>
                <%: Html.TextBoxFor(model => model.LastName, new { style="width:300px" })%>
                <%: Html.ValidationMessageFor(model => model.LastName) %>
            </div>
            
            <div class="editor-field">
                <%: Html.LabelFor(model => model.AddressLine1) %>
                <%: Html.TextBoxFor(model => model.AddressLine1, new { style="width:300px" })%>
                <%: Html.ValidationMessageFor(model => model.AddressLine1) %>
            </div>
            
            <div class="editor-field">
                <%: Html.HiddenFor(model => model.AddressLine2, new { style="width:300px" })%>
            </div>
            
            <div class="editor-field">
                <%: Html.LabelFor(model => model.City) %>
                <%: Html.TextBoxFor(model => model.City, new { style="width:300px" })%>
                <%: Html.ValidationMessageFor(model => model.City) %>
            </div>
            
            <div class="editor-field">
                <%: Html.LabelFor(model => model.PostalCode) %>
                <%: Html.TextBoxFor(model => model.PostalCode, new { style="width:300px" })%>
                <%: Html.ValidationMessageFor(model => model.PostalCode) %>
            </div>
            
            <div class="editor-field">
                <%: Html.LabelFor(model => model.Country) %>
                <%: Html.TextBoxFor(model => model.Country, new { style="width:300px" })%>
                <%: Html.ValidationMessageFor(model => model.Country) %>
            </div>
            
            <div class="editor-field">
                <%: Html.LabelFor(model => model.Phone) %>
                <%: Html.TextBoxFor(model => model.Phone, new { style="width:300px" })%>
                <%: Html.ValidationMessageFor(model => model.Phone) %>
            </div>
            
            <div class="editor-field">
                <%: Html.LabelFor(model => model.Email) %>
                <%: Html.TextBoxFor(model => model.Email, new { style="width:300px" })%>
                <%: Html.ValidationMessageFor(model => model.Email) %>
            </div>
            
            <p>
                <input type="submit" value="Update" />
            </p>
        </fieldset>

    <% } %>
   </div>
    <p>
        <%: Html.ActionLink("Back to List", "UserPage") %>
    </p>

</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="head" runat="server">
</asp:Content>

<asp:Content ID="Content4" ContentPlaceHolderID="Submenu" runat="server">
</asp:Content>

